package top.toptimus.dto.store;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 店员DTO
 *
 * @author Doge
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class AssistantDTO {
    private String id;
    private String name;

    public AssistantDTO(Map<String, Object> stringObjectMap) {
        try {
            this.id = stringObjectMap.get("ASSISTANT_ID").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            this.name = stringObjectMap.get("ASSISTANT_NAME").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
